package com.kk.state;

/**
 * @author o_o
 * @date 2022-06-21
 */
public class NoRaffle extends State {
    RaffleActivity activity;

    public NoRaffle(RaffleActivity activity) {
        this.activity = activity;
    }


    @Override
    public void deductMoney() {
        System.out.println("扣除积分100积分成功，开始抽奖");
        activity.setState(activity.getCanRaffleState());
    }

    @Override
    public boolean raffle() {
        System.out.println("扣了积分才能抽奖");
        return false;
    }

    @Override
    public void dispensePrize() {
        System.out.println("不能发放奖品");

    }
}
